import logo from './logo.svg';
import './App.css';
import { BrowserRouter as Router, Routes, Route, Navigate } from 'react-router-dom'
import { adminRoutes, mainRoutes } from './routes'
import 'antd/dist/antd.css'
import Frame from './compontents/Frame/Index'
import './App.css'
import store from './store'
import { Provider } from 'react-redux'
import ComA from './comA'
import ComB from './comB'
import Login from './pages/Login'
import Config from './routes/config'
function App(props) {
  console.log(props.children)
  return (
    // <Provider store={store}>
    //   <div>
    //     <ComA />
    //     <ComB />
    //   </div>
    // </Provider>
    <Config/>
    // <Router>
    //   <Frame >
    //     <Routes>
    //       {/* 访问所有以/admin开头的路由的时候都以app组件进行渲染 */}
    //       <Route path="/" element={<Navigate to="/login" />} />
    //       {(document.location.pathname.substring(0, 6) == '/admin' ? adminRoutes : mainRoutes).map(route => {
    //         //  return <Route key={route.path} path={route.path} element={route.element} />
    //         return <Route key={route.path} {...route} exact/>
    //       })
    //       }
    //       {/* <Navigate to='/admin' from='/' exact /> */}
    //       {/* <Route path="/" element={<Navigate to="/login" />} /> */}
    //       {/* <Route path="/*" element={<Navigate replace to="/404" />} /> */}
    //     </Routes>
    //   </Frame>
    // </Router>
  );
}

export default App;
